//修改密码
exports.forget_pwd = function (req, res) {

    var bodyParams = req.routeInfo.bodyParams;
    //最终结果
    var resultData = {};

    var userPasswordData = 0;

    var u_username = bodyParams.u_username;

    var u_password = common.md5(bodyParams.u_password);

    //任务流创建
    async.waterfall([
            function (cb) {
                R.SEND_HTTP(
                    req,
                    {
                        url: CORE_APIConfig.coreAPI.updateUser,
                        method: 'POST',
                        data: {
                            u_username: u_username,
                            u_password: u_password
                        }
                    },
                    function (err, data) {
                        //判断是否有错误信息
                        if (err) {
                            return RES.response(res, false, data);
                        }
                        // resultData.userData = data;
                        userPasswordData = data;
                        cb();
                    }
                );
            },

        ], function (err, result) {
            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

}